.class Lcom/estrongs/android/widget/p$a;
.super Landroid/os/Handler;
.source "SimpleProgressDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/widget/p;-><init>(Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/widget/p;


# direct methods
.method constructor <init>(Lcom/estrongs/android/widget/p;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/widget/p$a;->a:Lcom/estrongs/android/widget/p;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    .line 1
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/widget/p$a;->a:Lcom/estrongs/android/widget/p;

    invoke-static {v0}, Lcom/estrongs/android/widget/p;->a(Lcom/estrongs/android/widget/p;)J

    .line 3
    iget p1, p1, Landroid/os/Message;->what:I

    const/4 v0, 0x1

    if-ne v0, p1, :cond_0

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/widget/p$a;->a:Lcom/estrongs/android/widget/p;

    iget-object v0, p1, Lcom/estrongs/android/widget/p;->c:Landroid/widget/TextView;

    iget-object p1, p1, Lcom/estrongs/android/widget/p;->j:Ljava/lang/CharSequence;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_0
    const/4 v0, 0x3

    if-ne v0, p1, :cond_1

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/widget/p$a;->a:Lcom/estrongs/android/widget/p;

    invoke-static {p1}, Lcom/estrongs/android/widget/p;->b(Lcom/estrongs/android/widget/p;)Lcom/estrongs/android/widget/p$d;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/android/widget/p$a;->a:Lcom/estrongs/android/widget/p;

    iget-object v1, v0, Lcom/estrongs/android/widget/p;->b:Landroid/widget/ProgressBar;

    iget-object v2, v0, Lcom/estrongs/android/widget/p;->g:Landroid/widget/TextView;

    iget-wide v3, v0, Lcom/estrongs/android/widget/p;->h:J

    invoke-interface {p1, v1, v2, v3, v4}, Lcom/estrongs/android/widget/p$d;->b(Landroid/widget/ProgressBar;Landroid/widget/TextView;J)V

    goto :goto_0

    :cond_1
    const/4 v0, 0x2

    if-ne v0, p1, :cond_2

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/widget/p$a;->a:Lcom/estrongs/android/widget/p;

    invoke-static {p1}, Lcom/estrongs/android/widget/p;->b(Lcom/estrongs/android/widget/p;)Lcom/estrongs/android/widget/p$d;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/android/widget/p$a;->a:Lcom/estrongs/android/widget/p;

    iget-object v1, v0, Lcom/estrongs/android/widget/p;->b:Landroid/widget/ProgressBar;

    iget-object v2, v0, Lcom/estrongs/android/widget/p;->d:Landroid/widget/TextView;

    iget-wide v3, v0, Lcom/estrongs/android/widget/p;->i:J

    invoke-interface {p1, v1, v2, v3, v4}, Lcom/estrongs/android/widget/p$d;->a(Landroid/widget/ProgressBar;Landroid/widget/TextView;J)V

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/widget/p$a;->a:Lcom/estrongs/android/widget/p;

    iget-wide v0, p1, Lcom/estrongs/android/widget/p;->i:J

    long-to-double v0, v0

    iget-wide v2, p1, Lcom/estrongs/android/widget/p;->h:J

    long-to-double v2, v2

    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v0, v2

    .line 8
    iget-object v2, p1, Lcom/estrongs/android/widget/p;->e:Landroid/widget/TextView;

    iget-object p1, p1, Lcom/estrongs/android/widget/p;->f:Ljava/text/NumberFormat;

    invoke-virtual {p1, v0, v1}, Ljava/text/NumberFormat;->format(D)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_2
    :goto_0
    return-void
.end method
